/*
 * @Author: 周洋 1430536748@qq.com
 * @Date: 2024-07-22 23:30:13
 * @LastEditors: 周洋 1430536748@qq.com
 * @LastEditTime: 2024-07-22 23:30:55
 * @version: 1.2.2
 * @Description: 
 */

/** 手机号校验 */
export const validatePhone = (phone: string) => {
    if (!/^1(3|4|5|6|7|8)\d{9}$/.test(phone)) {
        return false
    } else {
        return true
    }
}